﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmThemCH.aspx.cs" Inherits="frmThemCH" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 23px;
        }
        .style3
        {
            height: 30px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Ma Cau Hoi"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMaCH" runat="server" Enabled="False"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvMaCH" runat="server" 
                        ControlToValidate="txtMaCH" ErrorMessage="Chua nhap du lieu !"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:Button ID="btnThemCH" runat="server" onclick="btnThemCH_Click" 
                        Text="Them CH" Width="98px" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label2" runat="server" Text="Noi Dung"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtNoidungCH" runat="server" Enabled="False"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNoidung" runat="server" 
                        ControlToValidate="txtNoidungCH" ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
                </td>
                <td class="style2">
                    <asp:Button ID="btnXoaCH" runat="server" Text="Xoa CH" Width="99px" 
                        onclick="btnXoaCH_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Muc Do"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="drplMucdo" runat="server" Height="16px" Width="126px" 
                        Enabled="False">
                        <asp:ListItem>Kho</asp:ListItem>
                        <asp:ListItem>TB</asp:ListItem>
                        <asp:ListItem>De</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnSua" runat="server" Text="Sua CH" onclick="btnSua_Click" 
                        Width="99px" />
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <asp:Label ID="Label4" runat="server" Text="A"></asp:Label>
                    <asp:TextBox ID="txtA" runat="server" Enabled="False" AutoPostBack="True" 
                        ontextchanged="txtA_TextChanged"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvA" runat="server" ControlToValidate="txtA" 
                        ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
                </td>
                <td class="style3">
                    </td>
                <td class="style3">
                    <asp:Button ID="btnHuy" runat="server"   
                        Text="Huy Thao Tac" Width="95px"  />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="B"></asp:Label>
                    <asp:TextBox ID="txtB" runat="server" Enabled="False" AutoPostBack="True" 
                        ontextchanged="txtB_TextChanged"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvB" runat="server" ControlToValidate="txtB" 
                        ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="C"></asp:Label>
                    <asp:TextBox ID="txtC" runat="server" Enabled="False" AutoPostBack="True" 
                        ontextchanged="txtC_TextChanged"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvC" runat="server" ControlToValidate="txtC" 
                        ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label7" runat="server" Text="D"></asp:Label>
                    <asp:TextBox ID="txtD" runat="server" Enabled="False" AutoPostBack="True" 
                        ontextchanged="txtD_TextChanged"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvD" runat="server" ControlToValidate="txtD" 
                        ErrorMessage="Chua nhap du lieu! !"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label8" runat="server" Text="Dap An Dung"></asp:Label>
                    <asp:DropDownList ID="drplDAdung" runat="server" Height="16px" Width="126px" 
                        Enabled="False">
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
                        GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" />
                            <asp:BoundField DataField="MaCH" HeaderText="MaCH" SortExpression="MaCH" />
                            <asp:BoundField DataField="NoiDungCH" HeaderText="NoiDungCH" 
                                SortExpression="NoiDungCH" />
                            <asp:BoundField DataField="DA1" HeaderText="DA1" SortExpression="DA1" />
                            <asp:BoundField DataField="DA2" HeaderText="DA2" SortExpression="DA2" />
                            <asp:BoundField DataField="DA3" HeaderText="DA3" SortExpression="DA3" />
                            <asp:BoundField DataField="DA4" HeaderText="DA4" SortExpression="DA4" />
                            <asp:BoundField DataField="DADUNG" HeaderText="DADUNG" 
                                SortExpression="DADUNG" />
                            <asp:BoundField DataField="MucDo" HeaderText="MucDo" SortExpression="MucDo" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:Last_TNTrucTuyenConnectionString %>" 
                        SelectCommand="SELECT * FROM [CAUHOI]"></asp:SqlDataSource>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
